home *** CD-ROM | disk | FTP | other *** search
- Path: xnet.com!kd9fb
- From: kd9fb@xnet.com (Peter Mikalajunas)
- Newsgroups: comp.lang.c
- Subject: Re: Pattern matching in C
- Date: Sat, 24 Feb 1996 10:36:13 LOCAL
- Organization: xnet.com
- Message-ID: <kd9fb.68.003E3651@xnet.com>
- References: <4gjo68$jpp@paperboy.ids.net> <4gm8ks$c3p@news-f.iadfw.net>
- NNTP-Posting-Host: monsoon.xnet.com
- X-Newsreader: Trumpet for Windows [Version 1.0 Rev B final beta #4]
-
- scarney@conan.ids.net (scarney) wrote:
-
-
- >I'm trying to do some text file pattern matching. Using a simple while
- >loop that has a <data> != <j.random string> in its conditional doesn't
- >work. Depending on different ways of doing it, you get a segmentation
- >fault, random output, or no output.
-
- Which sounds like a brute force method.
-
- When you get a segmentation fault and you are dealing with
- strings, the chances are good that you have NULL pointer somewhere.
-
- Post a snippet, if you feel you need help.
-
- You might also want to check ftp.cdrom.com /source/c for examples
- of a Boyer-Moore search algorithm.
-
- A Yahoo search for Boyer-Moore will also lead you to Knuth-Pratt,
- Rabin-Karp, etc.
-
-
-
-
-
-
-
- Peter Mikalajunas
- kd9fb@xnet.com
- http://www.xnet.com/~kd9fb
-
-